/**
 *  getServerSideProps 
 */

import React, { Component } from 'react';
import PageCont from '@/pageCont/Tests/Ssr';

class Comp extends Component {
    render() {
      var next = { id:this.props.id }
      return (
        <>
          <PageCont {...next}/>
        </>
      );
    }
}
  
export default Comp;

// 每次请求时候运行 （服务端渲染） 
export async function getServerSideProps(ctx) {
    const { id } = ctx.query
    console.log('getServerSideProps')
    return {
        props: { id }
    }
}
